x86/hvm: permit HVM_PARAM_IDENT_PT to be set more than once
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 May 2015 08:42:35 +0000 (10:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 May 2015 08:42:35 +0000 (10:42 +0200)
commit435beb84b5092d304c5ccd343b445010d5a38a4e
tree13e6ab0a5620409f8e81ad93e07086414a048118
parent0356e6b10f6a86528046734065c2dd9a2121f20c
x86/hvm: permit HVM_PARAM_IDENT_PT to be set more than once

There is no conceptual problem with setting this parameter more than once.
Checkpointed migration streams will typically set it once per checkpoint to
the same value.

The parameter is only actually needed on early-generation VT-x which lacked
the unrestricted guest capability, although it could plausibly be used on
newer VT-x with unusual execution control settings.  Short circuit the
expensive operations on non VT-x hardware.

The parameter itself must always be latched to avoid issues if the VM
eventually migrates to a host which needs to use the pagetable.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c